module.exports = {
  lintOnSave:false,
  publicPath:'./',
  devServer: {
    before: function(app){
      app.post('/login', function(req, res) {
        console.log(req)// 请求信息
        res.json({ code: 0,token:666 });
      });
    },
    proxy:{
      '^/vuejd': {
        target: 'https://www.easy-mock.com',
        pathRewrite: {'^/vuejd' : '/mock/5f0040fde5eed37a7dccfcfd/vuejd'}
      }
    }
  },
}